package lab02;

public class TestGame {
    public static void main(String[] args) {
        Golem G = new Golem();
        Zelos Z = new Zelos();

        System.out.print("开始战斗\t");
        System.out.print(G.RoleName+"当前HP:"+G.GolemHP+"\t");
        System.out.println(Z.RoleName+"当前HP:"+Z.ZelosHP);
        while (true){
            Z.ATTACK();
//            Thread.sleep(1000);
            G.ATTACK();
//            Thread.sleep(1000);

//            打完之后 加一波血
            if (Z.ZelosHP < 10 && Z.ZelosHP>0){
                Z.AddHP();
            }else if (Z.ZelosHP <0){
                //人血没了
                System.out.println(G.RoleName+"victory");
                break;
            }

            if (G.GolemHP < 10 && Z.ZelosHP>0){
                G.AddHP();
            }else if (G.GolemHP < 0){
                //怪血没了
                System.out.println(Z.RoleName+"victory");
                break;
            }
        }

    }
}

/*开始战斗	大猪佩奇当前HP:444	IKUN当前HP:66
IKUN:66
伤害:215
大猪佩奇:小猪慢拱229
伤害507
大猪佩奇victory

进程已结束,退出代码0
*/